﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Beetle.Sl.EditorControl.Core
{
    public class DocCommand : ViewModel, IDocCommand
    {
        private bool _isEnabled;

        public Editor Editor
        {
            get;
            private set;
        }

        public virtual string CommandText
        {
            get
            {
                return string.Empty;
            }
        }

        public bool IsEnabled
        {
            get
            {
                return this._isEnabled;
            }
            set
            {
                this._isEnabled = value;
                this.RaisePropertyChanged("IsEnabled");
            }
        }

        public virtual void Excute(object parameter)
        { }

        public virtual void Load(Editor editor)
        {
            this.Editor = editor;
        }
    }
}
